package com.timu.common;

import java.util.HashMap;
import java.util.Map;

/**
 * @描述:
 * @Author: zhangh
 * @Time: 2021/1/26 14:58
 **/
public abstract class AbstractEsbServiceRequest<T> {
    public Message<HashMap<String, Object>> requestParam(String data) {
        /**
         * 封装xml格式报文模板对象用来转换为xml
         *  Message<HashMap<String,Object>> requestMessage=new Message<>();
         *  requestMessage.setMessageHead(commonEsbHead());
         *  requestMessage.setMessageBody(commonEsbBody(t));
         *  return requestMessage;
         */
        return null;

    }

    //封装报文头
    protected Map<String,Object> commonEsbHead(){
        return null;
    }

    //封装报文体
    protected abstract HashMap<String,Object> commonEsbBody(T t);
}
